package com.ruoyi.ctcx.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ctcx.mapper.TbInsuranceRiskExpertMapper;
import com.ruoyi.ctcx.domain.TbInsuranceRiskExpert;
import com.ruoyi.ctcx.service.ITbInsuranceRiskExpertService;

/**
 * 保险风控专家信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@Service
public class TbInsuranceRiskExpertServiceImpl implements ITbInsuranceRiskExpertService 
{
    @Autowired
    private TbInsuranceRiskExpertMapper tbInsuranceRiskExpertMapper;

    /**
     * 查询保险风控专家信息
     * 
     * @param id 保险风控专家信息主键
     * @return 保险风控专家信息
     */
    @Override
    public TbInsuranceRiskExpert selectTbInsuranceRiskExpertById(Long id)
    {
        return tbInsuranceRiskExpertMapper.selectTbInsuranceRiskExpertById(id);
    }

    /**
     * 查询保险风控专家信息列表
     * 
     * @param tbInsuranceRiskExpert 保险风控专家信息
     * @return 保险风控专家信息
     */
    @Override
    public List<TbInsuranceRiskExpert> selectTbInsuranceRiskExpertList(TbInsuranceRiskExpert tbInsuranceRiskExpert)
    {
        return tbInsuranceRiskExpertMapper.selectTbInsuranceRiskExpertList(tbInsuranceRiskExpert);
    }

    /**
     * 新增保险风控专家信息
     * 
     * @param tbInsuranceRiskExpert 保险风控专家信息
     * @return 结果
     */
    @Override
    public int insertTbInsuranceRiskExpert(TbInsuranceRiskExpert tbInsuranceRiskExpert)
    {
        tbInsuranceRiskExpert.setCreateTime(DateUtils.getNowDate());
        return tbInsuranceRiskExpertMapper.insertTbInsuranceRiskExpert(tbInsuranceRiskExpert);
    }

    /**
     * 修改保险风控专家信息
     * 
     * @param tbInsuranceRiskExpert 保险风控专家信息
     * @return 结果
     */
    @Override
    public int updateTbInsuranceRiskExpert(TbInsuranceRiskExpert tbInsuranceRiskExpert)
    {
        tbInsuranceRiskExpert.setUpdateTime(DateUtils.getNowDate());
        return tbInsuranceRiskExpertMapper.updateTbInsuranceRiskExpert(tbInsuranceRiskExpert);
    }

    /**
     * 批量删除保险风控专家信息
     * 
     * @param ids 需要删除的保险风控专家信息主键
     * @return 结果
     */
    @Override
    public int deleteTbInsuranceRiskExpertByIds(Long[] ids)
    {
        return tbInsuranceRiskExpertMapper.deleteTbInsuranceRiskExpertByIds(ids);
    }

    /**
     * 删除保险风控专家信息信息
     * 
     * @param id 保险风控专家信息主键
     * @return 结果
     */
    @Override
    public int deleteTbInsuranceRiskExpertById(Long id)
    {
        return tbInsuranceRiskExpertMapper.deleteTbInsuranceRiskExpertById(id);
    }
}
